-- GENERATED SPELL FOR [Dr. Terrible] --


function spell0_30404(pUnit, Event) --@Crazed Chop,n/a--
pUnit:FullCastSpellOnTarget(61143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30404', 2307, 1)
end

function spell1_30404(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(31730,pUnit)
pUnit:RegisterEvent('Sorts_30404', 3500, 1)
end

function spell2_30404(pUnit, Event) --@Slime Stream,n/a--
pUnit:FullCastSpellOnTarget(61146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30404', 18000, 1)
end

function Sorts_30404(pUnit, Event)
local choix_sorts_30404 = math.random(0, 2)
if choix_sorts_30404 == 0 then
pUnit:RegisterEvent('spell0_30404', 1, 1)
end
if choix_sorts_30404 == 1 then
pUnit:RegisterEvent('spell1_30404', 1, 1)
end
if choix_sorts_30404 == 2 then
pUnit:RegisterEvent('spell2_30404', 1, 1)
end
end

function mob30404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30404', math.random(1500, 3000), 1)
end

function mob30404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30404, 1, 'mob30404_Action')
RegisterUnitEvent(30404, 2, 'mob30404_Leave')
RegisterUnitEvent(30404, 3, 'mob30404_Kill')
RegisterUnitEvent(30404, 4, 'mob30404_Die')
